<template>
  <div>
    <hoc />
  </div>
</template>

<script>
import View from './View'
import {wrapperPromise} from './utils'

const request = params => {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve({...params, status: 200})
    }, 500)
  })
}

const hoc = wrapperPromise(View, request)
export default {
  components: {
    hoc
  }
}
</script>
